Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumiama/winsockchat
A simple socket chat resolution.
https://github.com/fumiama/winsockchat
Last synced: 16 days ago
JSON representation
A simple socket chat resolution.
- Host: GitHub
- URL: https://github.com/fumiama/winsockchat
- Owner: fumiama
- Created: 2022-10-16T08:46:54.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-01T13:57:38.000Z (about 2 years ago)
- Last Synced: 2024-10-30T17:08:52.338Z (2 months ago)
- Language: C#
- Size: 469 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WinsockChat
A simple socket chat resolution.![image](https://user-images.githubusercontent.com/41315874/198241329-8addfa89-746a-4689-a5de-e9c7a2e14617.JPG)
## [C-Binding API](https://github.com/wa-kakalala/WSChatDLL)
> Minus return value represents an error
```c
#define CHAT_MODE_UDP (1)
#define CHAT_MODE_TCP (2)int Init(void (*f) (const char* msg, int msglen)); // f print msg to chat
int ServerStart(const char* ip, unsigned short* port, const char* name, int mode);
int ServerClose();
int ClientConnect(const char* ip, unsigned short port, int mode);
int ClientSendMessage(const char* msg, int msglen);
int ClientClose();
void Defer();
```