void Common::send_sock_data_1(int G_sock_data_len)
{
int byte_send;
byte_send = tcpSocket->write(G_sock_data_1, G_sock_data_len);
.
.
.
void Common::send_sock_data_1(int G_sock_data_len)
{
int byte_send;
byte_send = tcpSocket->write(G_sock_data_1, G_sock_data_len);
.
.
.
To copy to clipboard, switch view to plain text mode
Here is my write function. I pass in an integer which represents the length of the message being sent. G_sock_data_1 is a char array. I would like to know what I am doing wrong, or if there is a better solution to write on a socket. Also I am porting code over from Windows to CentOS.
Bookmarks