# Event "WIP\_CEV\_WRITE " in "wip\_list" handler function

**URL:** <https://forum.sierrawireless.com/t/event-wip-cev-write-in-wip-list-handler-function/3652>\
**Category:** Open AT\
**Created:** [September 21, 2009, 12:45am UTC](https://forum.sierrawireless.com/t/event-wip-cev-write-in-wip-list-handler-function/3652 "2009-09-21T00:45:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanthsoma](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@srikanthsoma](https://forum.sierrawireless.com/u/srikanthsoma)\
**Post date:** [September 21, 2009, 12:45am UTC](https://forum.sierrawireless.com/t/event-wip-cev-write-in-wip-list-handler-function/3652/1 "2009-09-21T00:45:34Z")

</div>

Hi I am using the API “wip\_list” for reading the file lists from FTP server.But I am getting the event "WIP\_CEV\_WRITE " in “wip\_list” event handler,but I am expecting “WIP\_CEV\_READ” event so that I can read the file list.Please tell me what could be the error I am attaching the part of code along with this post.

```auto
void Search_Config_File_In_FTP(void)
{
	
	g_stWip_list_Channel = wip_list( g_stFTP_Channel, NULL, (wip_eventHandler_f)&List_Event_Handler, NULL);
	
	if(ZERO == g_stWip_list_Channel) 
	{
		TRACE((1,"List channel creation Failure... "));	
		g_slnTempReturnValue = FAILURE_FTP_LIST_CHAN_CREATE;
		g_etFTP_Process_State = CLOSE_FTP_CHANNEL;
		
	}
		
	TRACE((1,"g_stWip_list_Channel : %d",g_stWip_list_Channel));

}
```
