原创 Linux下base64加密(C實現)[轉]

地址:http://hi.baidu.com/teng0210/blog/item/a61cfab5fe369b7b8ad4b228.html 來源chinaunix 源碼稍有修改 //base64.h #include<stdio.h

原创 RTSP會話基本流程

1.OPTION  目的是得到服務器提供的可用方法:  OPTIONS rtsp://192.168.20.136:5000/xxx666 RTSP/1.0  CSeq: 1 //每個消息都有序號來標記,第一個包通常是option

原创 參照openRTSP寫的一個RTSP client 加了一些註解

轉載  http://blog.csdn.net/gavinr/article/category/942245   [cpp] view plaincopy #include "liveMedia.hh"   #include 

原创 live555峯哥的私房菜(五)-----MyRTSP主函數

本文按照(四)的規劃建立了RTSP服務器的主函數。 //TcpSocket.h #ifndef _TCPSOCKET_H__ #define _TCPSOCKET_H__ #include <netinet/in.h> #include

原创 live555峯哥的私房菜(四)-----自己建立RTSP會話--總體構架

        在經過以上的學習之後,嘗試自己構架一個簡單的RTSP會話,該會話脫胎於live555,但去掉live555複雜的任務調度模塊(目前先做簡單點),沒有用戶名密碼認證這塊,也不包括RTP包的數據發送(目前還沒看到live555

原创 鼠標放上顯示字或圖片

<html> <head> <script language="javascript" type="text/javascript"> function cursor(str){ var id = document.getElementB

原创 live555 編譯 運行服務器

在官網上面 http://www.live555.com/liveMedia/#config-unix下載最新源碼,並進行編譯,同時官網上面告訴了你怎麼樣編譯已經不同平臺對應需要修改的內容 一、arm_linux_g++下面編譯視頻文

原创 live555 實現一個最簡單的RTSP服務器及其makefile

myser.cpp 和makefile 放在live\mediaServer文件夾中 myser.cpp #include <BasicUsageEnvironment.hh> #include "liveMedia.hh" stati

原创 live555峯哥的私房菜(三)-----RTSP會話的建立

RTSPServer* RTSPServer::createNew(UsageEnvironment& env, Port ourPort, UserAuthenticationDatabase* authDatabase

原创 live555峯哥的私房菜(二)-----計劃任務(TaskScheduler)探討

計劃任務(TaskScheduler)探討  上一篇談到SingleStep()函數會找到三種任務類型並執行之。 這三種任務是: socket handler, event handler, delay task 。  1、socket

原创 RTP的實現

linux 下基於jrtplib庫的實時傳送實現 一、RTP 是進行實時流媒體傳輸的標準協議和關鍵技術  實時傳輸協議(Real-time Transport Protocol,PRT)是在 Internet 上處理多媒體數據流的一種網絡

原创 最簡單的HTTP SERVER

/**   @file sample_httpd.c   @author Kevin Lynx   @brief sample httpd, just for testing purpose. *

原创 live555峯哥的私房菜(一)------整體上對最簡單RtspServer的介紹

整體上對最簡單RtspServer的介紹 int main() { TaskScheduler* scheduler; UsageEnvironment* env ; RTSPServer* rtspServer;

原创 簡單實用的makefile

CC = g++ CFLAGS = -Wall -g LIBS = -lpthread TARGET = shttpd RM = rm -f OBJS = shttpd_parameters.o shttpd.o shttpd_work

原创 TCP SOCKET 類的實現

//TcpSocket.h #ifndef _TCPSOCKET_H__ #define _TCPSOCKET_H__ #include <netinet/in.h> #include <stdio.h> #include <stdli