Server.c
374 Bytes
//
// Server.c
// RandomChat
//
// Created by 강현태 on 2017. 12. 19..
// Copyright © 2017년 KHU. All rights reserved.
//
#include "Server.h"
int openServer(){
int serverSock;
struct sockaddr_in servAddr;
if((serverSock=socket(PF_INET,SOCK_STREAM,0))<0){
return -1;
}
bzero(&servAddr,sizeof(servAddr));
return 1;
}