summaryrefslogtreecommitdiff
path: root/plugins/FavContacts/src/csocket.cpp
blob: a101e6535277a66cc78c18288ba79819f437ce61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "stdafx.h"

#include "csocket.h"

int CSocket::Recv(char *buf, int count)
{
	return recv(m_socket, buf, count, 0);
}

int CSocket::Send(char *buf, int count)
{
	if (count < 0)
		count = (int)mir_strlen(buf);
	return send(m_socket, buf, count, 0);
}

void CSocket::Close()
{
	shutdown(m_socket, SD_BOTH);
	closesocket(m_socket);
}