Untitled

 avatar
unknown
plain_text
a month ago
309 B
1
Indexable
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
#include<arpa/inet.h>
void main()
{
char *ip="127.0.0.1";
int port="5555";
int sock;     
struct sockaddrin addr;
socklent addrsize;
char buffer[1024];
int n;
sock=socket(AFINET,SOCKSTREAM,0);
if(sock<0)
{
perror("[-]socket error");

Leave a Comment