当前位置: 首页>>代码示例>>C++>>正文


C++ PacketStream::WriteInt32方法代码示例

本文整理汇总了C++中PacketStream::WriteInt32方法的典型用法代码示例。如果您正苦于以下问题:C++ PacketStream::WriteInt32方法的具体用法?C++ PacketStream::WriteInt32怎么用?C++ PacketStream::WriteInt32使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PacketStream的用法示例。


在下文中一共展示了PacketStream::WriteInt32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SubmitQuestion

bool AskService::SubmitQuestion(IAnswer *answerCB, char16* nickname, char16* password, char16* questionText, int32 numberOfPhotos, int32 responseType, ArrayOfString *customResponses, int32 durationType, bool isPrivate)
{
    if (!StartRequest(answerCB, AskService::EPS_SUBMITQUESTION))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(16);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteWString(questionText);
    isOk = isOk &&  str->WriteInt32(numberOfPhotos);
    isOk = isOk &&  str->WriteInt32(responseType);
    isOk = isOk &&  customResponses->WriteToStream(str);
    isOk = isOk &&  str->WriteInt32(durationType);
    isOk = isOk &&  str->WriteInt8((int8)isPrivate);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:25,代码来源:AskService.cpp

示例2: SkipQuestion

bool AskService::SkipQuestion(IAnswer *answerCB, char16* nickname, char16* password, int32 questionID)
{
    if (!StartRequest(answerCB, AskService::EPS_SKIPQUESTION))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(15);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteInt32(questionID);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:AskService.cpp

示例3: GetResponse

bool AskService::GetResponse(IAnswer *answerCB, char16* nickname, char16* password, int32 questionID)
{
    if (!StartRequest(answerCB, AskService::EPS_GETRESPONSE))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(13);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteInt32(questionID);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:AskService.cpp

示例4: GetComment

bool AskService::GetComment(IAnswer *answerCB, char16* nickname, char16* password, int32 commentID)
{
    if (!StartRequest(answerCB, AskService::EPS_GETCOMMENT))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(9);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteInt32(commentID);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:AskService.cpp

示例5: HasNewComments

bool AskService::HasNewComments(IAnswer *answerCB, char16* nickname, char16* password, int32 questionID, int32 lastCommentID)
{
    if (!StartRequest(answerCB, AskService::EPS_HASNEWCOMMENTS))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(14);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteInt32(questionID);
    isOk = isOk &&  str->WriteInt32(lastCommentID);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:21,代码来源:AskService.cpp

示例6: AttachPhoto

bool AskService::AttachPhoto(IAnswer *answerCB, char16* nickname, char16* password, char16* askQuestionID, int32 indexOrder, ArrayOfInt8 *photoBase64String)
{
    if (!StartRequest(answerCB, AskService::EPS_ATTACHPHOTO))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(7);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteWString(askQuestionID);
    isOk = isOk &&  str->WriteInt32(indexOrder);
    isOk = isOk &&  photoBase64String->WriteToStream(str);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:22,代码来源:AskService.cpp

示例7: GetQuestionIDs

bool AskService::GetQuestionIDs(IAnswer *answerCB, char16* nickname, char16* password)
{
    if (!StartRequest(answerCB, AskService::EPS_GETQUESTIONIDS))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(12);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:19,代码来源:AskService.cpp

示例8: GetCollections

bool SnapUpService::GetCollections(IAnswer *answerCB, char16* nickname, char16* password)
{
    if (!StartRequest(answerCB, SnapUpService::EPS_GETCOLLECTIONS))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(25);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:19,代码来源:SnapUpService.cpp

示例9: CompleteQuestion

bool AskService::CompleteQuestion(IAnswer *answerCB, char16* nickname, char16* password, char16* askQuestionID)
{
    if (!StartRequest(answerCB, AskService::EPS_COMPLETEQUESTION))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(8);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteWString(askQuestionID);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:AskService.cpp

示例10: AddComment

bool AskService::AddComment(IAnswer *answerCB, char16* nickname, char16* password, AskComment *newComment)
{
    if (!StartRequest(answerCB, AskService::EPS_ADDCOMMENT))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(6);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  newComment->WriteToStream(str);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:AskService.cpp

示例11: DeletePhoto

bool SnapUpService::DeletePhoto(IAnswer *answerCB, char16* nickname, char16* password, char16* webPhotoID)
{
    if (!StartRequest(answerCB, SnapUpService::EPS_DELETEPHOTO))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(23);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteWString(webPhotoID);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:SnapUpService.cpp

示例12: GetPhotosByCollection

bool SnapUpService::GetPhotosByCollection(IAnswer *answerCB, char16* nickname, char16* password, char16* webPhotoCollectionID)
{
    if (!StartRequest(answerCB, SnapUpService::EPS_GETPHOTOSBYCOLLECTION))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(26);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteWString(webPhotoCollectionID);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:SnapUpService.cpp

示例13: DeviceUploadPhoto

bool SnapUpService::DeviceUploadPhoto(IAnswer *answerCB, char16* nickname, char16* password, ArrayOfInt8 *base64StringPhoto, char16* dateTime)
{
    if (!StartRequest(answerCB, SnapUpService::EPS_DEVICEUPLOADPHOTO))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(22);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  base64StringPhoto->WriteToStream(str);
    isOk = isOk &&  str->WriteWString(dateTime);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:21,代码来源:SnapUpService.cpp

示例14: JavaUploadPhoto

bool SnapUpService::JavaUploadPhoto(IAnswer *answerCB, char16* encryptedWebMemberID, char16* webPhotoCollectionID, ArrayOfInt8 *base64StringPhoto, char16* dateTime)
{
    if (!StartRequest(answerCB, SnapUpService::EPS_JAVAUPLOADPHOTO))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(27);//request id

  
    isOk = isOk &&  str->WriteWString(encryptedWebMemberID);
    isOk = isOk &&  str->WriteWString(webPhotoCollectionID);
    isOk = isOk &&  base64StringPhoto->WriteToStream(str);
    isOk = isOk &&  str->WriteWString(dateTime);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:21,代码来源:SnapUpService.cpp

示例15: UploadPhoto

bool SnapUpService::UploadPhoto(IAnswer *answerCB, char16* nickname, char16* password, char16* webPhotoCollectionID, ArrayOfInt8 *photoFileBytes, char16* takenDT)
{
    if (!StartRequest(answerCB, SnapUpService::EPS_UPLOADPHOTO))
    {
        return false;
    }

    PacketStream *str = pServer->GetStream();
    bool isOk = true;

    isOk = isOk && str->WriteInt32(29);//request id

  
    isOk = isOk &&  str->WriteWString(nickname);
    isOk = isOk &&  str->WriteWString(password);
    isOk = isOk &&  str->WriteWString(webPhotoCollectionID);
    isOk = isOk &&  photoFileBytes->WriteToStream(str);
    isOk = isOk &&  str->WriteWString(takenDT);

    return isOk && EndRequest();

}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:22,代码来源:SnapUpService.cpp


注:本文中的PacketStream::WriteInt32方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。