-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hello, thanks for your excellent working... I am trying to develop a file server by using this project, but it is a little confusing about how to decode the file from the socket. I write the following code but it seems not working:
char buf[500]
int ret = 0;
int session_num=0;
int index = 0;
while (ret == 0){
read(sockfd,buf,500);
ret = m_lt_code->receiveAndDecode(200,buf,session_num,index);
}
m_lt_code->WriteFile("/tmp/test.png",session_num);Could you please give me a example? Thanks!
Metadata
Metadata
Assignees
Labels
No labels