간단한 멀티캐스트 샘플을 제작중인데요.
같은 라우터 안에서 테스트를 하면 데이터를 잘받아오는데
외부에서는 데이터를 받아오지를 못합니다. 주소는 225.100.100.1을
사용하였고 TTL 값은 255 를 사용했거든요. 소스를 첨부하니 무슨
문제가 있는 알려주시면 감사드리겠습니다.
데이타를 보내는 쪽
[code:1]#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
커널 쓰레들 실행할 때 보통
kernel_thread(xxx,NULL,FLAG);
.....
static int xxx(void)
{
.....
while(1){
...........
schedule();
}
}
이런식으로 쓰면서 6개 정도의 커널 쓰레드를 생성해서 쓰고 있는데....
while바로 앞에 특정 조건을 충족하지 못하면 return하도록 예컨데
static int xxx(void)
{
.....
if(y !=0 ) return;
while(1){
...........